/*!
 * 定义ui类的HTML模块。
 * 只有动态创建的HTML才有必要放到这里。
 * 模板用法可参考Xwb.util.Tpl类
 */

// htmls可任意改，但ID模板名称和rel属性不能更改
Xwb.ax.Tpl.reg({
    
    // Xwb.ui.Box
    Box : [
        '<div class="win-pop {.cs}">',
            '<div class="win-t"><div></div></div>',
            '<div class="win-con">',
                '<div class="win-con-in">',
                    '[?.title?{BoxTitlebar}?]',
                    '<div class="win-box clear" id="xwb_dlg_ct">',
                        '{.contentHtml}',
                    '</div>',
                '</div>',
                '<div class="win-con-bg"></div>',
            '</div>',
            '<div class="win-b"><div></div></div>',
			'[?.closeable?<a href="#" class="ico-close-btn" id="xwb_cls" title="关闭"></a>?]',
            '{.boxOutterHtml}',
        '</div>'
     ].join(''),
     
     // Xwb.ui.Dialog
     DialogContent : '{.dlgContentHtml}<div class="btn-area" id="xwb_dlg_btns">{.buttonHtml}</div>',
     
     BoxTitlebar : '<h4 class="win-tit {.titCls}"><span id="xwb_title">{.title}</span></h4>',
     
     Mask : '<div class="shade-div"></div>',
     
     // Xwb.mod.ForwardBox
     ForwardDlgContentHtml : [
            '<p id="xwb_forward_text"></p>',
            '<div class="forward-tool"><span id="xwb_warn_tip">还可以输入140字</span><a href="#" class="icon-face-choose" id="xwb_face_trig"></a></div>',
            '<textarea id="xwb_fw_input" class="style-normal"></textarea>',
            '<div id="xwb_fw_lbl"></div>'
     ].join(''),
     
     ForwardDlgLabel : '<label><input type="checkbox" value="{.uid}">同时作为{.nick}的评论发布</label>',
     
     MsgDlgContent : '<div class="tips-c"><div class="icon-alert" id="xwb_msgdlg_icon"></div><p id="xwb_msgdlg_ct"></p></div>',
     
     Button : '<a href="#" class="{.cs}" id="xwb_btn_{.id}"><span>{.title}</span></a>',

	EmotionHotList: '<div class="hot-e-list" id="hotEm">{.hotList}</div>',
     
     EmotionBoxContent : [
        '<div class="win-tab bottom-line" id="cate">',
		 '	{.category} ',
        '</div>',
        '<div class="emotion-box" id="box">',
			'{EmotionHotList}',
            '<div class="e-list" id="flist0">',
				'{.faces}',
            '</div>',
        '</div>'
     ].join(''),
     ArrowBoxBottom  : '<div class="arrow"></div>',
     EmotionIcon       : '<a href="javascript:;" title="{.title}" rel="e:em"><img src="{.src}"></a>',
     Loading : '<div id="xweibo_loading" class="loading"></div>',
	
    CmtBox : [
        '<div class="post-comment-main clear" id="cmtBox">',
				'[?.profileImg?<span class="user-pic" href="#"><img src="{.profileImg}" alt=""></span>?]',
				'<div class="comment-r">',
					'<div class="text-area"><textarea class="style-normal" id="inputor"></textarea></div>',					
					'<div class="post-dest">',
						'[?.showEmotion?<a href="#" class="ico-face" rel="e:face" title="表情">表情</a>?]',
						'[?.shareWb?分享到',
						'<label><input name="weibo" type="checkbox" rel="e:cw,t:sina" value="sina">新浪微博</label>',
						'<label><input  name="weibo" type="checkbox" rel="e:cw,t:qq"  value="qq">腾讯微博</label>',
						'<label><input  name="weibo" type="checkbox" rel="e:cw,t:renren" value="renren">人人网</label>?]',
					'</div>',
					'<div class="action"><a href="javascript:;" class="btn-s4" rel="e:sd"><span>评论</span></a></div>',
				'</div>',
				'<i></i>',
			'</div>'
    ].join(''),
    
    CommentArea : [
        '<div class="add-comment">[?.special?<h3 class="title">我要说两句</h3>?]{.cmtBoxHtml}',
			'<div class="comment-list all-comment">',
				'<div class="tit-s3"><h3 id="commenTotal"></h3></div>',
				'<ul id="cmtCt"></ul>',
			'</div>',
			'[?.newSystem?<div class="page" id="pageArea"></div>?]',
		'[?.relaySystem?<div class="list-footer clear"><div class="page"></a></div></div>?]',
		'</div>'].join(''),
		
		
	PointCommentArea : [
        '<div class="add-comment">',
			'<div class="comment-list all-comment">',
				'<ul id="cmtCt"></ul>',
			'</div>',
			'<div class="page" id="pageArea"></div>',
			'<h3 class="title">分享经验</h3>{.cmtBoxHtml}',
		'</div>'].join(''),
    
	onPointComment : ['<div class="tips-null-s2">',
						'<span class="ico-alert"></span>',
						'<p>哇！居然还没有人点评过这个分类呢，还等什么? 快来抢沙发吧！</p>',
						'<p><a href="#" id="_toPointCmt" rel="e:toC,na:1">马上点评</a></p>',
					'</div>'].join(''),

   
    atwho:['<div class="atwho">',
            '    [?!.noAt?<h4 id="title">想用@提到谁？</h4>?]',
			'	<ul id="mainUL">',
			'	</ul>',
			'</div>'].join(''),
 
    Comment : [
		'<li rel="c:{.id},n:{.nick},imgUrl:{.ext._imgUrl},rid:{.cid}">',
		'<div class="user-pic">',
 			'<a href="{.usrUrl}" {.open}><img class="{.user_card}" rel="u:{.uid},i:{.img},sid:{.sid},n:{.nick}" src="{.profileImg}" title="{.nick}" alt="{.nick}的头像"  /></a>',
            '[?.level?<span class="level">{.level}</span>?]',
			'[?.sina?<span>{.sina}</span>?]',
       '</div>',
		
		'<div class="comment-c">',
        '<p class="c-user"><a href="{.usrUrl}" class="{.user_card}" {.open} rel="u:{.uid},i:{.img},sid:{.sid},n:{.nick}">{.nick}</a></p>',
		'[?.text3?<p class="c-info">{.text3}</p>?]',
        '[?.text1?<p class="c-rel">{.text1}</p>?]',		
		'[?.hasimg?<div class="msg-box c-img-box clear"><span class="msg-cont">',
					'<img class="replyImg" alt="" _src="{.hasimg}" src="{.hasimg}" width="150" height="150" />',
				'</span>',
				'<span class="arrow"><span class="arrow-in">◆</span>◆</span>',
			'</div>?]',
		'[?.text2?<p class="c-info">{.text2}</p>?]',		
			'<span class="time">{.create_at}</span>',
			'<p class="operate">[?.hasrep?<a class="ico-report hidden"  href="javascript:;" rel="e:xrep,t:c">举报</a>?]',
				'[?.canDel?<a class="ico-del-s1 hidden" href="#" rel="e:dl">删除</a>?][?.showReply?<a class="ico-reply" href="#" rel="e:rp">回复</a>?]',
			'</p>', 
		'</div></li>'
	 ].join(''),
	 
	 //小组评论
	 TopicComment : [
		'<li rel="c:{.id},n:{.nick},imgUrl:{.ext._imgUrl},rid:{.cid}">',
		'<div class="user-pic">',
			'<a href="{.usrUrl}" {.open}><img class="{.user_card}" rel="u:{.uid},i:{.img},sid:{.sid},n:{.nick}" src="{.profileImg}" title="{.nick}" alt="{.nick}的头像"  /></a>',
            '[?.level?<span class="level">{.level}</span>?]',
			'[?.sina?<span>{.sina}</span>?]',
        '</div>',
		
		'<div class="comment-c">',
        '<p class="c-user"><a href="{.usrUrl}" class="{.user_card}" {.open} rel="u:{.uid},i:{.img},sid:{.sid},n:{.nick}">{.nick}</a></p>',
		'[?.text3?<p class="c-info">{.text3}</p>?]',
        '[?.text1?<p class="c-rel">{.text1}</p>?]',		
		'[?.hasimg?<div class="msg-box c-img-box clear"><span class="msg-cont">',
					'<img class="replyImg" alt="" _src="{.hasimg}" src="{.hasimg}" width="150" height="150">',
				'</span>',
				'<span class="arrow"><span class="arrow-in">◆</span>◆</span>',
			'</div>?]',
		'[?.text2?<p class="c-info">{.text2}</p>?]',		
			'<span class="time">{.create_at}  {.floor}</span>',
			'<p class="operate">[?.hasrep?<a class="ico-report hidden"  href="javascript:;" rel="e:xrep,t:topic,tt:topic_comment">举报</a>?]',
				'[?.canDel?<a class="ico-del-s1 hidden" href="#" rel="e:dl">删除</a>?][?.canReply?<a class="ico-reply"   href="#" rel="e:rp">回复</a>?]',
			'</p>',
		'</div></li>'
	 ].join(''),
	 
	 ImpressComment : [
		'<li rel="c:{.id},n:{.nick},imgUrl:{.ext._imgUrl},rid:{.cid}">',
		'<div class="user-pic">',
			'<a href="{.usrUrl}" {.open}><img class="{.user_card}" rel="u:{.uid},i:{.img},sid:{.sid},n:{.nick}" src="{.profileImg}" title="{.nick}" alt="{.nick}的头像"  /></a>',
            '[?.level?<span class="level">{.level}</span>?]',
			'[?.sina?<span>{.sina}</span>?]',
        '</div>',
		
		'<div class="comment-c">',
        '<p class="c-user"><a href="{.usrUrl}" class="{.user_card}" {.open} rel="u:{.uid},i:{.img},sid:{.sid},n:{.nick}">{.nick}</a></p>',
		'[?.text3?<p class="c-info">{.text3}</p>?]',
        '[?.text1?<p class="c-rel">{.text1}</p>?]',
		'[?.text2?<p class="c-info">{.text2}</p>?]',		
			'<span class="time">{.create_at}</span>',
			'<p class="operate">[?.hasrep?<a class="ico-report hidden"  href="javascript:;" rel="e:xrep,t:c">举报</a>?]',
				'[?.canDel?<a class="ico-del-s1 hidden" href="#" rel="e:dl">删除</a>?][?.canReply?<a class="ico-reply"   href="#" rel="e:rp">回复</a>?]',
			'</p>',
		'</div></li>'
	 ].join(''),
	
	
	SpecialComment : [
		'<li rel="c:{.id},n:{.nickname},rid:{.cid}">',
		'<div class="user-pic">',
			'<a href="{.usrUrl}"><img class="{.user_card}" rel="u:{.uid}" src="{.face_m}" title="{.nickname}" alt="{.nickname}的头像"  /></a>',
            '[?.level?<span class="level">{.level}</span>?]',
        '</div>',
		
		'<div class="comment-c">',
        '<p class="c-user"><a href="{.usrUrl}" class="{.user_card}" rel="u:{.uid},i:{.img},sid:{.sid},n:{.nickname}">{.nickname}</a></p>',
		'<p class="c-info">{.content}</p>',	
			'<span class="time">{.create_at}</span>',
			'<p class="operate">',
				'<a class="ico-reply"   href="#" rel="e:rp">回复</a>',
			'</p>',
		'</div></li>'
	 ].join(''),
	 
	PointCmt : ['<li rel="c:{.id},n:{.nick},st:{.st}">',
						'<div class="user-pic">',
							'<a href="{.usrUrl}"><img class="{.user_card}" rel="u:{.uid}" src="{.profileImg}" title="{.nick}" alt="{.nick}的头像"></a>',
							'[?.level?<span class="level">{.level}</span>?]',
                        '</div>',
                        '<div class="comment-c" id="comment_c">',
							'<p class="c-user"><a href="{.usrUrl}" class="{.user_card}" rel="u:{.uid},i:{.img},sid:{.sid},n:{.nick}">{.nick}</a></p>',
							'<p class="c-info">{.text}</p>',	
							'<div class="trends-info">',
								'<span class="operate">',
								'[?!.agree?<a class="" rel="e:uforns,t:1" href="#">赞成(<em>{.useful_num}</em>)</a>?]',
								'[?.agree?<span class="ico-agree">赞成({.useful_num})</span>?]',
								'[?!.oppose?<a class=""  rel="e:uforns,t:2" href="#">反对(<em>{.nouse_num}</em>)</a>?]',
								'[?.oppose?<span class="ico-oppose">反对({.nouse_num})</span>?]',
								'<a href="#" rel="e:rpi" class="_r">回复(<em id="r">{.reply_num}</em>)</a></span>',
								'<span class="time"><a href="javascript:;">{.create_at}</a></span>',
							'</div>',
							'<span class="actions hidden">[?.canDel?<a href="#" rel="e:dl">删除</a>?][?.hasrep?<a class="ico-report visibility-hidden"  href="javascript:;" rel="e:xrep,t:c">举报</a>?]</span>',
						'</div></li>'].join(''),
						
	PointReplyListArea : ['<div class="comment" id="replyListArea">',
						'<div class="add-comment">',
							'<a href="#" class="btn-s4" rel="e:sdr"><span>回复</span></a>',
							'<textarea class="style-normal"></textarea>',
						'</div><div id="replyList"></div>',
						'<div class="pager" id="pageArea">',                                                   
						'</div>',
						'<i class="arrow"></i>',
					'</div>'].join(''),
					
	PointReplyList : ['<div class="item" rel="n:{.nick},r:{.id}">',
						'<a class="pic" href="{.user.profileUrl}"><img alt="" src="{.profileImg}"></a>',
						'<div class="desc">',
							'<a href="#">{.nick}</a>：{.text}',
						'</div>',
						'<a class="reply" href="#" rel="e:rpl">回复</a>',
					'</div>'].join(''),
	
 
    MBlogCmt : [
        '<li rel="c:{.id},n:{.nick}">',
            '<div class="user-pic">',
                '<a href="{.usrUrl}"><img alt="" src="{.profileImg}" /></a>',
            '</div>',
            '<div class="comment-c">',
                '<p class="c-info"><a href="{.usrUrl}">{.nick}{.verifiedHtml}</a> {.text}({.time}) </p>',
                '<div class="c-for" id="trigs">',
                    '<a href="javascript:;" class="ico-reply" rel="e:rp">回复</a>',
					'[?.canDel?<a href="javascript:;" class="ico-del" rel="e:dl">删除</a>?]',
                '</div>',
                '{.cmtBoxHtml}',
            '</div>',
        '</li>'
    ].join(''),
    
    Followed : '<span class="followed-icon {.cs}">已关注</span>',

    MediaBoxContentHtml : [
			'<div class="insert-box">',
				'<p>请输入<a href="http://video.sina.com.cn" target="_blank">新浪播客</a>、<a href="http://www.youku.com" target="_blank">优酷网</a>、<a href="http://www.tudou.com" target="_blank">土豆网</a>、<a href="http://www.ku6.com/" target="_blank">酷6网</a>等视频网站的视频播放页链接</p>',
				'<input type="text" id="xwb_inputor" class="style-normal"><a href="#" class="btn-s1" rel="e:ok"><span>确定</span></a>',
				'<p class="error-tips hidden" id="xwb_err_tip">你输入的链接地址无法识别<span><a href="#" rel="e:cc">取消操作</a>或者<a href="#" rel="e:nm">作为普通的链接</a>发布。</span></p>',
			'</div>'
    ].join(''),

	PictureBox: [
		'<div class="box-style" style="display:none">',
		'	<div class="box-t skin-bg"><span class="skin-bg"></span></div>',
		'	<div class="box-content">',
		'   <div class="show-img"><p><a href="#" rel="e:zo" class="ico-piup">收起</a>',
		'   <a href="{.org}" target="_blank" class="ico-src">查看原图</a>',
		'   <a href="#" class="ico-turnleft" rel="e:tl">向左转</a>',
		'   <a href="#" class="ico-turnright" rel="e:tr">向右转</a></p>',
		'   <div name="img"></div></div>',
		'   </div>',
		'	<div class="box-b skin-bg"><span class="skin-bg"></span></div>',
		'	<span class="box-arrow skin-bg"></span>',
		'</div>'
	].join(''),
	
	//转发中的图片显示
	PictureBoxForward: [
		'<div class="show-img cutline" style="display:none">',
		'<p><a class="ico-piup" rel="e:zo" href="#">收起</a><a class="ico-src" target="_blank" href="{.org}">查看原图</a><a rel="e:tl" class="ico-turnleft" href="#">向左转</a><a rel="e:tr" class="ico-turnright" href="#">向右转</a></p>',
		'<div name="img"></div></div>'
	].join(''),

	PreviewBox: [
		'<div class="preview-img"></div>'
	].join(''),
	
	VideoThumbHtml: [
		'<div class="feed-img"><img width="120px" height="90px" src="{.img}" alt="">',
		'<div class="video-view" rel="e:pv,i:{.id}"></div></div>'
	].join(''),
	
	VideoBox: [
		'<div class="box-style showbox" style="display:none">',
		'	<div class="box-t skin-bg"><span class="skin-bg"></span></div>',
		'	<div class="show-video box-content">',
		'   <p><a rel="e:cv" href="#" class="ico-piup">收起</a><span>|</span><a title="{.title}" target="_blank" href="{.href}">{.title}</a></p>',
		'   <div>{.flash}</div></div>',
		'	<div class="box-b skin-bg"><span class="skin-bg"></span></div>',
		'	<span class="box-arrow skin-bg"></span>',
		'</div>'
	].join(''),

	VideoBoxForward: [
		'<div class="cutline show-video">',
		'<p><a rel="e:cv" href="#" class="ico-piup">收起</a><span>|</span><a title="{.title}" target="_blank" href="{.href}">{.title}</a></p>',
		'<div>{.flash}</div></div>'
	].join(''),
    
    MusicBoxContentHtml : [
        '<div class="insert-box music-box">',
            '<p>请输入<a href="http://music.sina.com.cn/yueku/" target="_blank">新浪乐库</a>等音乐站点的音乐播放页链接</p>',
            '<input type="text" id="xwb_inputor" class="style-normal"><a href="#" class="btn-s1" rel="e:ok"><span>确定</span></a>',
            '<p class="error-tips hidden" id="xwb_err_tip">你输入的链接地址无法识别<span><a href="#" rel="e:cc">取消操作</a>或者<a href="#" rel="e:nm">作为普通的链接</a>发布。</span></p>',
        '</div>'
    ].join(''),
    
    UploadImgBtn : '<a href="#" rel="e:dlp" class="ico-close-btn" title="删除"></a>',
    
    SearchDropdownList : '<ul class="head-searchlist"><li class="mouseover">含<span></span>的微博</li><li>名<span></span>的人</li></ul>',
    
    PrivateMsgContent : [
        '<div class="field"><label>发短消息给：</label><input class="style-normal" type="text" id="sender" /><span class="tips-wrong hidden" id="warnPos">她还没有关注你,暂时不能发短消息</span></div>',
        '<div class="field"><label>短消息内容：</label><textarea class="style-normal" id="content"></textarea></div>',
        '<input type="hidden" id="uid" value="">',
        '<div class="field-area">',
            '<div class="icon-face-choose" rel="e:ic"></div>',
			'<a class="btn-s1 btn-s1-light fl" href="javascript:;" rel="e:sd"><span>发送</span></a>',
			'<span class="tips-txt" id="word">您还可以输入140个字</span>',
        '</div>'
    ].join(''),  
	
	NoticeLayer : [
		'<p id="msg" class="hidden"><span id="n">0</span> 条新消息，<a href="{.msgUrl}">点击查看</a></p>',
		'<p id="youji" class="hidden">好友发表<span id="n">0</span>篇新游记，<a href="{.youjiUrl}">点击查看</a></p>'
	].join(''),
    
	//登录
	Login: [
		'<div class="login-area">',
		'	<span><a href="{.regUrl}">注册帐号</a></span><a class="btn-web-account bind-btn-bg" href="{.siteLoginUrl}">{.siteName}登录</a>',
		'	<span><a href="{.sinaRegUrl}" target="_blank">开通微博</a></span><a class="btn-sina-account bind-btn-bg" href="#" id="oauth">新浪微博帐号登录</a>',
		'</div>',
		'<div class="bind-tips">提示：您可以使用{.siteName}帐号或新浪微博帐号登录本网站</div>'
	].join(''),
    
	PostBoxContent : [
				'<div class="loading" id="loading"></div>',
				'<div class="form-correct hidden" id="shareBody">',
                    '<div id="shareChk" class="row clear">',
                        '<label class="lbl">分享到：</label>',
						'<label><input type="checkbox" name="weibo" value="sina"/><i class="ico-sina-s1"></i></label>',
						'<label><input type="checkbox" name="wiebo" value="qq"/><i class="ico-qq-s1"></i></label>',
						'<label><input type="checkbox" name="wiebo" value="renren"/><i class="ico-rr-s1"></i></label><span id="selectWb" class="tips tips-on hidden">请先选择微博</span>',
                    '</div>',
                    '<div class="rec-pic">',
                    	'<textarea class="txa"  id="xwb_inputor"></textarea>',
						'<div id="picArea" class="hidden">',
							'<div class="tit">分享图片</div>',
							'<div class="box"><img src=""/>',								
							'</div>',
						'</div>',
                    '</div><p class="tips tips-s2" id="xwb_word_cal"></p>',
                    '<div class="row actions">',
                        '<a class="btn-s1" href="#"  rel="e:sd"><span>确定</span></a><a class="btn-s1 btn-s1-gray" href="#" rel="e:c"><span>取消</span></a>',
                    '</div></div>{BindWeibo}'					
					].join(''),
					
	BindWeibo :  ['<div class="other hidden" id="other">',
						'<div class="desc">',
							'<p>{.userName}，你好！</p>',
							'<p>未绑定任何社交网帐号，请先绑定。</p>',
						'</div>',
						'<div class="bind-area">',
							'<p><a class="ico-sina-s3" id="sinaBtn" href="#" rel="e:con,t:sina"></a></p>',
							'<p><a class="ico-qq-s3" id="qqBtn" href="#" rel="e:con,t:qq"></a></p>',
							'<p><a class="ico-rr-s3" id="renBtn"href="#" rel="e:con,t:renren"></a></p>',
						'</div>',
						'<p class="tips">个人设置中的<a href="/setting.connect" target="_blank">连接设置</a>可进行相应修改</p>',
						'<div class="action">',
							'<p class="tips hidden" id="bindWard">请绑定微博</p><a href="#" class="btn-s4" rel="e:bs"><span>完成</span></a>',
						'</div>',
					'</div>'].join(''),
    
    AnchorTipContent : '<div class="tips-c"><div class="icon-correct icon-bg"></div><p id="xwb_title"></p></div>',
    AnchorDlgContent : '<div class="tips-c"><div class="icon-warn icon-bg"></div><p id="xwb_title"></p></div>',
    
    SpanBoxContent : [
        '<div class="win-box-inner">',
            '<p class="desc">不良信息是指含有色情、暴力、广告或其他骚扰你正常微博生活的内容。</p>',
            '<p>你要举报的是“{.nick}”发的微博：</p>',
            '<div class="report-box">',
                '<div>{.text}</div>',
                '<img src="{.img}" class="user" width="30px" height="30px" >',
            '</div>',
            '<p>你可以填写更多举报说明：（选填）</p>',
            '<p><textarea rows="" cols="" id="content"></textarea></p>',
            '<div class="foot-con">',
                '<p>请放心，你的隐私将会得到保护。<br>举报电话：400 690 0000</p>',
                '<div class="btn-area">',
                    '<a href="#" class="btn-s1 btn-s1-light" rel="e:ok"><span>确认举报</span></a>',
                    '<a href="#" class="btn-s1 btn-s1-gray" rel="e:cancel"><span>取消</span></a>',
                '</div>',
            '</div>',
        '</div>'
    ].join(''),
    addFollowContent:['<input type="text" id="Content"/><a class="btn-s1" href="javascript:;" rel="e:submit" ><span>保存</span></a>',
                    '<p>请添加想关注的话题</p>',
                    '<p class="warn hidden">添加关注话题失败</p>'].join(''),
    evevtApplicants:['<div class="field"><label>联系方式：</label><input type="text" name="contact" id="contact"/></div>',
        '        <div class="field"><label>备注：</label><textarea name="note" id="note"></textarea></div>',
        '          <div class="field-area">',
        '            <a href="javascript:;" class="btn-s1 btn-s1-light fl" rel="e:sd"><span>发送</span></a>',
        '            <span class="tips-txt">说明：长度不能超过100个字</span>',
        '            <span class="tips-wrong hidden">这里是提示信息</span>',
        '        </div>'].join(''),
        
     colorBox : ['<ul>',
                 '<li class="cur" rel="e:getCls,c:#000,w:bg1"><span style="background:#000"></span></li>',
					'<li rel="e:getCls,c:#808080,w:bg2"><span style="background:#808080"></span></li>',
					'<li rel="e:getCls,c:#f66,w:bg3"><span style="background:#f66"></span></li>',
					'<li rel="e:getCls,c:#90c,w:bg4"><span style="background:#90c"></span></li>',
					'<li rel="e:getCls,c:#e7f2fb,w:bg5"><span style="background:#e7f2fb"></span></li>',
					'<li rel="e:getCls,c:#fff,w:bg6"><span style="background:#fff"></span></li>',
					'<li rel="e:getCls,c:#f00,w:bg7"><span style="background:#f00"></span></li>',
					'<li rel="e:getCls,c:#f60,w:bg8"><span style="background:#f60"></span></li>',
					'<li rel="e:getCls,c:#fc0,w:bg9"><span style="background:#fc0"></span></li>',
					'<li rel="e:getCls,c:#090,w:bg10"><span style="background:#090"></span></li>',
				'</ul>',
				'<div class="btn-area">',
					'<a href="#" class="btn-s1" rel="e:comf"><span>确定</span></a>',
				'</div>'].join(''),
				
				
	  colorpicker : ['<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div>',
	  '<div class="cp-oper"><span class="txt" id="cltitle">主链接色</span><span class="c-view" id="cRealColor"><span style="background:#0082cb;"></span></span><label>#<input value="" class="input-txt" id="colorshow" /></label></div>',
		  '<a href="#" class="btn-close" rel="e:closeCls"></a></div>'].join(''),
		  
	verify :	'<div class="verify-c tips ico-verify">该信息在审核中，请稍后再试！</div>',
    
    //景点搜索
    searchSpots : '<ul class="drop-search hidden"></ul>',
	
	//搜索全部
	searchResult : '<div class="search-result"></div>',
    
    //我的景点
    mySpot : '<h4>想去的景点</h4><div class="attr-list" id="w_list">{.wantToSpots}</div><h4>去过的景点</h4><div class="attr-list" id="v_list">{.visitedSpots}</div>',
    
    //查看图片
    imageShow : '<div class="win-pop win-zoom win-fixed"><div class="pic-container" id="ctn">{Loading}</div><a class="ico-close-btn-s1-gray" href="#" id="xwb_cls"></a></div>',
    
    //发送框
    sendBox : [
        '<h3>{.topic}</h3>',
        '<form>',
        '    <textarea class="style-normal"></textarea>',
        '    <div class="submit-area">',
        '        <a href="javascript:;" class="btn-s4" id="btn" rel="e:sd"><span>{.btnText}</span></a>',
        '        {.appendHtml}',
        '    </div>',
        '    <span class="tips-err hidden" id="errTip">请输入内容</span>',
        '</form>'
        ].join(''),
        
    //附近景点地图
    nearMap : [
        '<h3>{.name}<span>{.city}</span></h3>',
        '<div class="nearby-info">',
        '    <div class="attr-nearby">',
        '        <h4>附近景点</h4>',
        '        <ul class="attr-list" id="nearspots">',
        '       {.nearspots}',
        '        </ul>',
        '    </div>',
        '    <div class="attr-map">',
        '        <div id="nearmap" class="map-info">{Loading}</div>',
        '        <a href="#" class="ico-view" id="zoom" rel="e:zoom">查看完整地图</a>',
        '    </div>',
        '</div>'
    ].join(''),
	
	wailMap_p :['<li><a href="{.url}" class="img-item">',
				'	<img width="155" height="155" src="{.src}">',
				'	<span>',
				'		<em>{.name}</em>',
				'	</span>',
				'</a></li>'].join(''),
				
	wailMap_y :['<li><a href="{.url}" class="img-item">',
				'	<img  width="155" height="155" src="{.src}">',
				'	<span>',
				'	<span class="tour-thumb">',
				'	{.imgData}',
				'	</span>',
				'	<em>{.name}</em>',
				'	<span class="tour-cont">{.summary}</span>',
				'</span>',
				'</a></li>'].join(''),
    
    //想去、去过状态设置框
    StateContent : [
        '<h3>修改</h3>',
        '<form>',
        '    <div class="form-row">',
        '        <label><input type="radio" name="spots_state" value="1">想去</label>',
        '        <label><input type="radio" name="spots_state" value="2">去过</label>',
        '    </div>',
        '    <div class="form-row">',
        '        <a href="#" class="btn-s1" rel="e:ok"><span>确定</span></a>',
        '        <a href="#" class="btn-s1 btn-s1-gray" rel="e:cls"><span>取消</span></a>',
        '    </div>',
        '</form>'
    ].join(''),
    
    MapTip : '<div class="fp-status-tips"> <div class="opa opa-add"></div><div class="text"><p id="tipC"></p></div></div>',
    
    NewFootMark : [
        '<div class="fp-info">',
        '    <div class="fp-info-inn" id="inP">',
        '    </div>',
        '</div>'].join(''),
	
	AlbumLi : ['<li rel="e:chk,pid:{.photo_id}" title="{.caption}" pid="{.photo_id}">',
				'	<div class="pic-item">',
				'		<img src="{.small_pic}">',
				'		<em></em>',
				'	</div>',
				'</li>'].join(''),
		
	picLi:['<li  pid="{.pid}">',
			'	<div class="action hide"><span class="down" rel="e:up"><a href="#" >上移</a></span><span class="up" rel="e:down"><a href="">下移</a></span><a class="l" href="#" rel="e:wrap">设封面</a><a class="r" href="#" rel="e:del">删除</a></div>',
			'	<div class="tour-pic"><img src="{.src}"></div>',
			'	<textarea class="txt-area" textTip="最多140字"></textarea>',
			'</li>'].join(''),
				
	fpInfoList:['<li>',
				'	<div class="user-pic">',
				'		<a href="{.url}" title="{.nickname}"><img src="{.face_s}"></a>',
				'	</div>',
				'	<div class="fp-cont">',
				'		{.state}<a href="{.spotsUrl}">{.name}</a>；',
				'	</div>',
				'</li>'].join(''),
				
	createAlbum:['<h3>创建相册</h3>',
                '<div class="album-form">',
                ' 	<div class="row">',
                '    	<label>相册名称</label>',
                '        <input class="txt" type="text" id="caption">',
                '        <span class="num"><em id="num">0</em>/99</span>',
                '    </div>',
                '	<div class="action">',
                '    	<a href="#" class="btn-s1" id="submitBnt"><span>确定</span></a>',
                '    	<a href="#" class="btn-s1 btn-s1-gray" id="xwb_cls"><span>取消</span></a>',
                '    </div>',
                '</div>',
                '<div class="set-succeed hidden">',
                ' 	相册<a href="#" id="textCaption">桂林之行</a> 已创建完成，现在就马上添加照片吧!',
                '      <div class="action">',
                '          <a href="#" class="btn-s1" id="goupLoad"><span>确定</span></a>',
                '          <a href="#" class="btn-s1 btn-s1-gray" id="xwb_cls"><span>取消</span></a>',
                '      </div>',
                '</div>'].join(''),
				
	upLoadAlbum : ['<div class="form-row">',
                    '	<label>选择相册</label>',
					'	<select id="ablumSelect">',
					'		<option>阿斯多夫</option>',
					'	</select>',
					'</div>',
					'<div class="form-row">',
					'<em>或者</em>',
					'<span id="createAlbum">创建相册</span>',
					'<span class="addAlbum hidden">',
						'<input type="text" id="caption" value="" class="default">',
						'<span class="ok" id="create">确定</span><span class="cancel" id="clsCreate">取消</span>',
					'</span>',
					'</div>',
					'<div class="album-box">',
						//'<iframe id="xwbIfrmame" class="shade-div shade-iframe hidden" frameborder="0" style="height: 100%;position: relative; width: 100%;"></iframe>',
						'<div id="flashBox"></div>',
					'</div>'].join(''),
		
	albumItem :[    '<li rel="e:sp" originalPic="{.original_pic}">',
					'	<div class="pic">',
					'	    <img src="{.small_pic}">',
					'	</div>',
					'</li>'].join(''),
						
	//图片选择盒子		
	picBox : [  '<div class="box hidden" id="{.boxId}">',
					'<div class="insert-album">',
                    	'<div class="hd">加载相册列表中...</div>',
                        '<div class="bd">',
                        	'<ul></ul>',
                        '</div>',
                    '</div>',
				'</div>'].join(''), 

	likeSend: ['<div class="send">',
				'	<a href="#" class="btn-s4" rel="e:sd"><span>评论</span></a>',
                '	<input type="text" id="text">',
				'</div>'].join(''),
        
    floatFootmark : [
        '<div class="bubble {.style}">',
        '    <a href="#" rel="e:lg" class="user-pic">',
        '        <img alt="{.nickname}" src="{.profile_img}">',
        '    </a>',
        '    <div class="user-info">',
        '        <div class="user-name"><a href="#" rel="e:lg">{.nickname}</a></div>',
        '        <p><span>{.stateText}</span><a href="#" rel="e:lg">{.name}</a></p>',
        '    </div>',
        '    <div class="bubble-bg"><div>',
        '</div>'
    ].join(''),
	
	fbTips:['<h3>温馨提示</h3>',
			'	{.info}',
            '    <div class="action">',
            '        <a class="btn-s5" href="#" id="xwb_cls"><span>以后再说</span></a>',
            '        <a class="btn-s4" href="#" id="ok"><span>马上分享</span></a>',
            '</div>'].join(''),
	
	UserCompare : [
    		'<div class="pking">',
    		'	<div class="friend-info">',
	    	'		<div class="user-pic"><a href="{.f_profile_url}"><img src="{.f_profile_image_url}"></a></div>',
	    	'		<div class="user-info">',
			'			<div class="fp-total">',
			'				<ul>',
			'					<li class="no-split">',
			'						<div class="ico-pin-red">去过<a href="javascript:;">{.f_haveBeen}</a></div>',
			'					</li>',
			'					<li class="no-split">',
			'						<div class="ico-pin-green">想去<a href="javascript:;">{.f_wantTo}</a></div>',
			'					</li>',
			'				</ul>',
			'			</div>',
			'		</div>',
	    	'	</div>',
	    	'	<div class="my-info">',
	    	'		<div class="user-pic"><a href="{.profile_url}"><img src="{.profile_image_url}"></a></div>',
	    	'		<div class="user-info">',
			'			<div class="fp-total">',
			'				<ul>',
			'					<li class="no-split">',
			'						<div class="ico-pin-green">想去<a href="javascript:;">{.haveBeen}</a></div>',
			'					</li>',
			'					<li class="no-split">',
			'						<div class="ico-pin-red">去过<a href="javascript:;">{.wantTo}</a></div>',
			'					</li>',
			'				</ul>',
			'			</div>',
			'		</div>',
	    	'	</div>',
    		'</div>',
    		'<div class="fate">',
    		'	<a href="#" rel="e:sd,m:{.fateMsg}" class="btn-share-fp"><span>分享我的足迹到微博</span></a>',
    		'	<div class="fate-info">',
    		'		<p>',
    		'			<span class="meta no-split">缘分指数<span class="score-s{.fate}"></span></span>',
    		'			<span class="meta">共同去过<strong>{.commonHaveBeen}</strong>个地方</span>',
    		'			<span class="meta">共同想去<strong>{.commonWantTo}</strong>个地方</span>',
			'		</p>',
    		'		<p><span class="meta no-split">{.text}</span></p>',
    		'	</div>',
    		'</div>'].join(''),
		
		ImageView:['<div id="youjiImgBox">',
					'<a href="#" class="arrow-prev" id="aPrev" rel="e:prev,na" onfocus="this.blur();" title="上一张"></a>',
					'<a href="#" class="arrow-next" id="aNext" rel="e:next,na" onfocus="this.blur();" title="下一张"></a>',
					'<div class="win-pop win-enlarge">',
					'	<div class="pic-container">',
					'		<a href="#" class="prev" rel="e:prev,na" onfocus="this.blur();" title="上一张"></a>',
					'		<a href="#" class="next" rel="e:next,na" onfocus="this.blur();" title="下一张"></a>',
					'		<div id="ctn" ></div>',
					'		<div class="loading" id="xweibo_loading"></div>',
					'	</div>',
					'	<div class="operation">',
					'		<div class="pic-control"><a href="#" class="ico-src" target="_blank">查看大图</a>|<a href="#" class="ico-turnleft" rel="e:left,na">向左转</a>|<a href="#" class="ico-turnright" rel="e:right,na">向右转</a></div>',
					'		{.operationStatus}',
					'	</div>',
					'[?.hasCmt?<div class="add-comment" id="cmtBox">',
					'		<div class="comment-r">',
                    '           <a href="#" rel="e:face" class="ico-face" title="表情"></a>',
					'			<a class="btn-s8" href="#" rel="e:sd"><span>评论</span></a>',
					'			<div class="normal-s2">',
					'				<textarea class="style-normal"  id="inputor">随便说几句……</textarea>',
					'			</div>',
					'			<div><label><input type="checkbox" class="checked" id="sync" checked="checked">分享到微博</label></div>',
					'		</div>',
					'	</div>?]',
					'	<a href="#" class="ico-close-btn-s3" id="xwb_cls"></a>',
					'</div>',
					'</div>'].join(''),
		
		operationStatusSpots:[
					'<div class="opera-status">',
					'	<a class="ico-commented" href="#" rel="e:cm"><em class="num" id="cCount">1</em></a>',
					'	<a class="ico-liked" href="#" rel="e:like"><em class="num" id="fCount">1</em></a>',
					'   <span class="hidden" id="errorTips"></span>',
					'</div>'
		].join(''),
		operationStatusYouji:[
			'<div class="opera-status hidden">',
        	'	<p>评论成功！</p>',
            '	<a href="#" id="Showcomments">查看评论</a>',
			'</div>'
		].join(''),
		
		spotsYoujiList:['<div class="travel-item">',
						'	<div class="tour-pic">',
						'		<a target="_blank" href="/index.php?m=youji&id={.youji_id}"><img width="189" src="{.thumbnail_pic}"><span class="addr"><em class="addr-name">{.province_name}.{.spots_name}</em><span class="bg"></span></span></a>',
						'	</div>',
						'	<div class="tour-info">',
						'		<h4 class="tit"><a href="/index.php?m=youji&id={.youji_id}">{.caption}</a></h4>',
						'		<p><em>by</em><a href="/index.php?m=footmark.ta&id={.sina_uid}">{.screen_name}</a><span class="time">{.sortTime}</span></p>',
						'		<p class="info">{.summary}</p>',
						'		<div rel="y:{.youji_id}" class="action">',
						'			<a class="ico-commented" href="#" title="评论" rel="e:scm"><em class="num">{.comments_count}</em>人评论</a>',
						'			<a class="{.likeCss}" href="#" title="喜欢" rel="e:like,t:1"><em class="num">{.like_count}</em>人喜欢</a>',
						'		</div>',
						'	</div>',
						'</div>'].join(''),
						
		youjiPost:['<div class="win-box-in">',
					'		<div class="post-pic" id="flashBox">',
					'		</div>',
					'		<div class="post-info">',
					'			{.postInfo}',
					'		</div>',
					'</div>',
                    '<div class="action">',
					'	<a class="btn-s4" href="#" id="submitBtn"><span>我知道了</span></a>',
					'</div>'].join(''),
					
		insetImg :['<div class="tab-s10" id="tab">',
                '	<a href="#" content-id="flashBox" class="cur"><span>上传图片</span></a><a href="#" content-id="networkBox"><span>网络图片</span></a>',
                '</div>',
				'<div class="box" id="flashBox"></div>',
               	'<div class="box web-img hidden" id="networkBox">',
                '	<div class="item"><label for="caption">图片地址：</label><input value="" class="txt" id="caption" type="text"><span id="warn"></span></div>',
                '    <a href="#" class="add ico-add" id="additem">继续添加</a>',
                '</div>',
				'<div class="btn-area hidden" id="Btn_wbPicBox">',
                	'<p class="func"><a href="#" id="Btn_wbPicBox_close" class="btn-s4"><span>确定</span></a></p>',
                '</div>'
				].join(''),
				
		insertFriend : ['<div class="win-pop win-insert-img win-insert-friend">',
					'	<div class="win-box clear">',
					'		<div class="tab-s6 clear" id="tab">',
					'		</div>',
					'		<div class="scroll-box" id="scrollBox">',
					'		</div>',
					'		<p class="tip">最多添加10位好友</p>',
					'	</div>',
					'	<a class="ico-close-btn" href="#" id="xwb_cls" title="关闭"></a>',
					'</div>'].join(''),
		//分页
		Page : ['<div class="pagination" id="{.id}"></div>'].join(''),
				
		localfriendLi :	['<li rel="e:chkf,id:{.id}">',
					'	<a class="pic" href="#"><img alt="" src="{.face_m}"></a>',
					'	<div class="info">',
					'		<p class="name"><a title="{.nickname}" href="#">{.nickname}</a></p>',
					'		<p>{.introduction}</p>',
					'	</div>',
					'	<i></i>',
					'</li>'].join(''),
		unlocalfriendLi :['<li rel="e:chkf,id:{.bid}">',
					'	<a class="pic" href="#"><img width="50" height="50" alt="" src="{.profile_img}"></a>',
					'	<div class="info">',
					'		<p class="name"><a title="{.nickname}" href="#">{.nickname}</a></p>',
					'		<p>{.introduction}</p>',
					'	</div>',
					'	<i></i>',
					'</li>'].join(''),
		insertWb :	['<div class="box box-s1">',
					'	<div class="bd">',
					'		<p class="no-wb hidden"><i class="ico-attention"></i>对不起，近三天你没有发表过微博，请选择其他时间段查看。</p>',
					'		<div class="feed-list-s3" id="wbList">',
					'		</div>',
					'	</div>',
					'</div>'].join(''),
		editWbLi : ['	<div class="item">',
					'		<input type="checkbox">',
					'		<p class="desc">{.text}</p>',
					'		[?.ext.original_pic?<img src="{.ext.original_pic}" class="img">?]',
					'		<p class="time">{.time}</p>',
					'	</div>'].join(''),
				
			Msg : ['<div class="form-correct form-msg">',
                    '<div class="row clear">',
                        '<label class="lbl">昵称：</label><input type="text" class="txt" id="sender" />',
						'<span class="tips hidden" id="warnPos">错误消息</span>',
                    '</div>',
                    '<div class="row clear">',
                        '<label class="lbl">内容：</label><textarea class="txa"  id="content"></textarea>',
						'<p class="tips tips-s1 hidden"  id="word">140</p>',
                    '</div><input type="hidden" id="uid" value="">',
                    '<div class="row actions">',
						'<span id="nullWord" class="tips hidden">请输入短消息内容</span>',
                        '<a class="btn-s1" href="#" rel="e:sd"><span>确定</span></a><a class="btn-s1 btn-s1-gray" href="#" rel="e:c"><span>取消</span></a>',
                    '</div>',
                '</div>'].join(''),
				
			expExpert : ['<div class="form-correct">',
							'<div class="row clear">',
								'<label class="lbl lbl-s2">景点：</label>',
								'<select>',
								'</select>',
							'</div>',
							'<div class="row clear">',
								'<label class="lbl lbl-s2">分类：</label>',
								'<div class="options clear">',
								'</div>',
							'</div>',
							'<div class="row actions">',
								'<a href="#" class="btn-s1" rel="e:ok"><span>确定</span></a><a href="#" class="btn-s1 btn-s1-gray" rel="e:cc"><span>取消</span></a>',
							'</div>',
						'</div>'].join(''),
				
		unbinding:['<div class="box binding">',
		        '	<p class="tit"><i class="ico-attention"></i><span>还未绑定{.typeName}喔！</span></p>',
				'   <p class="tip">简单3步，轻松绑定微博，即可获得一枚“八面玲珑”勋章。</p>',
                '    <p class="action">1、点击<a class="ico-{.type}-s3" href="#" rel="e:con,t:{.type},s:youjiWb"></a></p>',
                '    <p>2、输入{.typeName}用户名、密码</p>',
                '    <p>3、点击"允许"</p>',
                '</div>'].join(''),
		
		btnBind: ['<span class="ico-{.t}-s3" rel="e:con,t:{.t}"></span>'].join(''),

		btnUnBind: ['<span class="ico-{.t}-s1"></span>',
			        '<span class="binded">已连接，微博昵称：{.nickName}  <a rel="e:unCon,t:{.t}" href="#">取消绑定</a></span>'].join(''),
		
		sitesTpl: '<div id="sites" class="sites"><div class="loading"></div></div>',
		
		//勋章浮层的内容
		medal: ['<div class="medal">',
                	'<img src="/{.image}" alt="{.name}" />',
					'<p><img src="/{.s_image}" alt="{.name}" /></p>',
                '</div>',
                '<div class="info">',
                	'<h5>领取说明：</h5>',
                    '<p class="desc">{.desc}</p>',
                    '[?.state?{MedalState}?]',
                '</div>'].join(''),	

		MedalState: '<h5>当前状态：</h5><p>{.state}</p><h5>领取方式：</h5><p>自动获取</p>',
		
		staticMedal: [ '<div class="medal">',
							'<img alt="一呼百应" src="/img/medal/b/invite.jpg">',
							'<p><img alt="一呼百应" src="/img/medal/s/invite.png"></p>',
						'</div>',
						'<div class="info">',
							'<h5>领取说明：</h5>',
							'<p class="desc">参加"公测邀请注册"活动，成功邀请5个以上好友注册即可获得。',
							'<br/>活动时间：2011-12-15至2012-01-14</p>',
						'</div>'].join(''),
		
		//首次登录引导提醒
		msgCoin : ['<p class="title welcome"><em class="name">{.userName}</em></p>',
					'<p class="desc">欢迎来到自游网！自游网是旅行爱好者的分享社区，在这里你可以添加自己的旅行足迹、心情、攻略给鱼儿们。你的分享与共享将得到积分，分享越多积分越多！</p>',
					'<div class="action"><a href="#" rel="e:c" class="btn-s1"><span>我知道了</span></a></div>'].join(''),			
								
		msgFace : ['<p class="welcome"><em>{.userName}</em>欢迎来到自游网</p>',
                '<p class="desc">添加自己的头像可以得到更多展示自己的位置，更方便鱼友们认识你！做一个有头有脸的人，鱼友们都已经添加了自己的头像！</p>',
                '<div class="avatars">',
					'<img src="/img/avatars/01.jpg" alt="" />',
                    '<img src="/img/avatars/02.jpg" alt="" />',
                    '<img src="/img/avatars/03.jpg" alt="" />',
                    '<img src="/img/avatars/04.jpg" alt="" />',
                    '<img src="/img/avatars/05.jpg" alt="" />',
                    '<img src="/img/avatars/06.jpg" alt="" />',
                    '<img src="/img/avatars/07.jpg" alt="" />',
                    '<img src="/img/avatars/08.jpg" alt="" />',
                    '<img src="/img/avatars/09.jpg" alt="" />',
                    '<img src="/img/avatars/10.jpg" alt="" />',
                    '<img src="/img/avatars/11.jpg" alt="" />',
                    '<img src="/img/avatars/12.jpg" alt="" />',
                    '<img src="/img/avatars/13.jpg" alt="" />',
                    '<img src="/img/avatars/14.jpg" alt="" />',
                    '<img src="/img/avatars/15.jpg" alt="" />',
                    '<img src="/img/avatars/16.jpg" alt="" />',
                    '<img src="/img/avatars/17.jpg" alt="" />',
                    '<img src="/img/avatars/18.jpg" alt="" />',
                    '<img src="/img/avatars/19.jpg" alt="" />',
                    '<img src="/img/avatars/20.jpg" alt="" />',
					'</div>',
				'<div class="action"><a href="#" rel="e:c,t:1" class="btn-s1"><span>上传我的头像</span></a></div>'].join(''),
					    	
		msgFootmark : ['<div class="pic"><img src="/img/medal/b/footprint5.jpg" alt="" /></div>',
						'<div class="info"><h4>获取“走马观花”勋章</h4><p>添加5个去过和5个想去足迹即可获取此勋章．</p>',
						'<div class="action"><a href="#" rel="e:c" class="btn-s1"><span>马上获取</span></a> </div></div>'].join(''),
		
		msgYouji : ['<div class="pic"><img src="/img/medal/b/youji1.jpg" alt="" /></div>',
						'<div class="info"><h4>获取“一鸣惊人”勋章</h4><p>发表您的第一篇游记，可获得“一鸣惊人”勋章，同时获得3000自游币和300等级经验！</p>',
						'<div class="action"><a href="#" rel="e:c" class="btn-s1"><span>立即发表</span></a></div></div>'].join(''),
		
		//首次登录引导提醒结束

		Guide1:['<p class="desc">插入微博选项，可直接选取微博插入游记中编写。</p>',
		'	<div class="action"><a id="xwb_cls" href="#" class="btn-s1"><span>我知道了</span></a></div>'].join(''),
		
		Guide2:['<p class="desc">快捷相册，可直接将新浪相册照片插入游记中编辑。</p>',
				'	<div class="action"><a id="xwb_cls" href="#" class="btn-s1"><span>我知道了</span></a></div>'].join(''),
				
				
		GuideEditForm:  ['<div class="form-correct">',
                    	'<div class="row">',
                           '<label>段落：</label>{.paragraph}',
                        '</div>',
                        '<div class="row">',
                           '<label>内容：</label><textarea name="content"></textarea>',
                        '</div>',
						'<div class="row actions">',
                            '<a id="btn-Confirm" class="btn-s1" href="#"><span>确定</span></a><a id="btn-Cancel" class="btn-s1 btn-s1-gray" href="#"><span>取消</span></a>',
                   		'</div>',
                     '</div>'].join(''),
					 
		Report:['<div class="form-correct">',
               '     <div class="row clear">',
               '        <label class="lbl">举报类型：</label><input type="checkbox" value="1" id="ad-type" /><label for="ad-type">广告</label><input type="checkbox" value="2" id="reaction-type" /><label for="reaction-type">不实信息</label><input type="checkbox" value="4"  id="other-type" /><label for="other-type">其他</label>',
               '     </div>',
               '     <div class="row clear">',
               '         <label class="lbl">举报说明：</label><textarea class="txa" id="content"></textarea>',
               '     </div>',
               '     <div class="row actions">',
               '         <a href="#" class="btn-s1" id="xwb_ok"><span>确定</span></a><a href="#" id="xwb_cls" class="btn-s1 btn-s1-gray"><span>取消</span></a>',
               '     </div>',
               ' </div>'].join(''),
                
        loginBox : [
            '<div class="bind">',
            '    <div class="other">',
            '        <p class="title">免注册！使用以下网站帐号立即登录自游网</p>',
            '        <a title="用新浪微博帐号登录" class="ico-sina-s3" href="#" rel="e:lg,t:sina"></a><a title="用腾讯微博帐号登录" class="ico-qq-s3" href="#" rel="e:lg,t:qq"></a><a title="用人人网帐号登录" class="ico-rr-s3" href="#" rel="e:lg,t:renren"></a>',
            '    </div>',
            '</div>',
            '<form method="POST" action="">',
            '<div class="login">',
            '    <p class="title">使用自游网帐号登录</p>',
            '    <div class="row">',
            '        <input id="g_username" vrel="_f|_ft=text:用户名|ne=m:&lt;span&gt;密码不能为空&lt;/span&gt;&lt;i&gt;&lt;/i&gt;" warntip="#_tips" name="username" class="input-txt" type="text">',
            '    </div>',
            '    <div class="row">',
            '        <input value="密码" id="pwd" class="input-txt"><input id="g_password" vrel="_f|ne=m:&lt;span&gt;密码不能为空&lt;/span&gt;&lt;i&gt;&lt;/i&gt;" warntip="#_tips" name="password" class="input-txt hidden" type="password"><a href="/index.php?m=account.retrieve_password" class="forgot" title="忘记密码">忘记密码？</a>',
            '    </div>',
			'	 <div class="ext">',
			'		 <a href="#" class="btn-login" id="btnLogin"><span>登录</span></a>',
			'		 <label class="checkbox"><input type="checkbox" name="rememberme">记住登录</label>',
			'	 </div>',
			'    <p id="_tips" class="tips hidden"><span>帐号或密码错误</span><i></i></p>',
			'	 <p class="reg-new"><a href="/index.php?m=account.register">注册新帐号</a></p>',
			'    <input type="submit" style="position:absolute;top:-9999px;">',
            '</div>',
            '</form>'
        ].join(''),
		
		loginBox2: [
				'<h4>分享精美游记，编写旅游攻略</h4>',
                '<div class="bind-login">',
                	'<a title="用新浪微博帐号登录" rel="e:lg,t:sina" class="ico-sina-s3" href="#"></a><a title="用腾讯微博帐号登录" rel="e:lg,t:qq" class="ico-qq-s3" href="#"></a><a title="用人人网帐号登录" rel="e:lg,t:renren" class="ico-rr-s3" href="#"></a>',
                '</div>',
                '<p class="title">已有自游网帐号？<a href="/index.php?m=account.login">点此登录</a><a href="/index.php?m=account.register">注册</a></p>'
//                '<div class="form-area">',
//				   '<form method="POST" action="">',
//                	'<div class="row">',
//                    	'<input vrel="_f|_ft=text:用户名,css:|ne=m:<span>帐号不能为空</span><i></i>" warntip="#tips" name="username" value="用户名" type="text" class="input-txt">',
//                    '</div>',
//                    '<div class="row">',
//                    	'<input value="密码" id="pwd" class="input-txt"><input vrel="_f|ne=m:<span>密码不能为空</span><i></i>" warntip="#tips" id="password" name="password" type="password" class="input-txt hidden">',
//                    '</div>',
//                    '<div class="row">',
//						'<a href="{.retrieve_password}" class="forgot">忘记密码？</a>',
//                        '<label class="checkbox"><input type="checkbox" name="rememberme">记住登录</label>',
//                    '</div>',
//                    '<div class="action">',
//                        '<a id="btnLogin" class="btn-s4" href="#"><span>登录</span></a><span class="reg">还没有帐号？<a href="/index.php?m=account.register">立即注册</a></span>',
//                    '</div>',
//                    '<p id="tips" class="tips hidden"><span>用户名或密码错误</span><i></i></p>',
//					'<input type="submit" style="position:absolute;top:-9999px;">',
//				   '</form>',
//                '</div>'
				].join(''),
				
		UserCard : ['<div><div class="profile clear">',
                    '<div class="user-pic">',
                        '<a href="{.nameUrl}"><img height="50" width="50" src="{.profileImg}" /></a>',
                        '<span class="level">LV.{.level}</span>',
                    '</div>',
                    '<div class="user-info">',
                        '<p class="name"><a href="{.nameUrl}">{.name}</a></p>',
                        '<p class="loc">{.gender}{.location}</p>',
                        '<p class="total"><a href="{.fansUrl}">粉丝</a>{.fans}<span>|</span><a href="{.youjiUrl}">游记</a>{.youji}<span>|</span><a href="{.footmarkUrl}">足迹</a>{.footmark}</p>',
                    '</div>',
                '</div>',
                '<div class="medal-list" id="medal">{.medals}',
                '</div>',
                '[?.nome?<div class="actions"  rel="u:{.id},t:5,n:{.name}">',
                    '<a id="unfl" href="#" class="btn-follow {.nfled}" rel="e:fl,t:{.type},f:{.friendship}"></a>',
                    '<span id="ufl" class="btn-followed {.fled}"><a href="#" rel="e:ufls,t:7,f:1">取消</a></span>',
					'<span id="fl" class="btn-each-followed {.fl}"><a href="#" rel="e:ufls,t:7,f:3">取消</a></span>',
                    '<a href="#" id="msg" class="ico-message {.flme}" rel="e:sdm">发短消息</a>',
                '</div>?]</div>'].join(''),      

		SinaUserCard : ['<div class="profile wb-tips clear">',
							'<div class="user-pic">',
								'<a href="{.url}" target="_blank"><img height="50" width="50" src="{.img}" /></a>',
							'</div>',					
							'<div class="user-info">',
								'<p class="name"><a href="{.url}"  target="_blank">{.nick}</a></p>',
								'<p class="ico-wb-tips">提示：</p>',
								'<p>该用户为新浪微博用户，此条评论在新浪微博中发出。</p>',
								'<p><a href="{.url}"  target="_blank">查看TA的新浪微博&gt;&gt;</a></p>',
                    '</div></div>'].join(''),   	
				
		
		feedBack: ['<div class="win-fixed feedback fb-hide">',
    				'<div id="fbHandle" class="handle"><span><i></i></span></div>',
    				'<div class="bd">',
						'<textarea>在此处填写您的意见或建议</textarea>',
                        '<div class="action">',
                           '<a id="fb_submit" class="btn-s1" href="#"><span>发送反馈</span></a>',
                        '</div>',
                    	'<div class="tips hidden">',
                            '<em class="icon-success"></em>',
                            '<p>发送成功！</p>',
                            '<p>感谢您的反馈</p>',
                        '</div>',
                    '</div>',
                  '</div>'].join(''),
				  
		medalBox : ['<div>',
						'<div class="pic">',
						'<img height="110" width="110"  src="{.pic}" />',
						'</div>',
						'<div class="info">',
							'<h4>{.name}</h4>',
							'<p>{.desc}</p>',
							'<div class="action">',
								'<a href="{.url}">查看勋章</a>',
							'</div>',
						'</div>',
                  '</div>'].join(''),
				  
		giftBox : ['<p class="tips">请填写以下详细信息，客服会尽快确认联系你！</p>',
				'<div class="form">',
                    '<form action="" giftId="{.lottId}">',
					    '<input type="hidden" name="id" value="{.lottId}" >',
                        '<div class="row">',
                            '<label for="name">*姓名</label>',
                            '<div class="el">',
                                '<input type="text" id="name" name="name">',
                            '</div>',
                        '</div>',
                        '<div class="row">',
                            '<label for="tel">*电话</label>',
                            '<div class="el">',
                                '<input type="text" id="tel" name="tel">',
                            '</div>',
                        '</div>',
                        '<div class="row">',
                            '<label for="addr">*邮寄地址</label>',
                            '<div class="el">',
                                '<input type="text" id="addr" name="address">',
                            '</div>',
                        '</div>',
                        '<div class="row">',
                            '<label for="qq">*QQ号码</label>',
                            '<div class="el">',
                                '<input type="text" id="qq" name="qq">',
                            '</div>',
                        '</div>',
                        '<div class="row">',
                            '<label for="mail">*Email</label>',
                            '<div class="el">',
                                '<input type="text" id="mail" name="email">',
                            '</div>',
                        '</div>',
                        '<div class="actions">',
                            '<a href="#" id="submitBtn" class="btn-s1 btn-s1-light"><span>提交</span></a>',
                        '</div>',
                    '</form>',
            '</div>'].join(''),
		invite: ['<div class="top-boot" style="height:0px">',
            	'<div class="user">',
                	'<a class="user-pic" href="#"><img src="{.imgSrc}"></a>',
                '</div>',
                '<div class="boot-txt">',
                	'<p><a href="{.userLink}"><strong>{.uname}</strong></a>邀请你参加“自游大抽奖，邀好友一起来拿精彩好礼”活动！</p>',
                    '<p>完成活动任务，你与<a href="{.userLink}">{.uname}</a>有机会同时获得各种限量版精美礼品，另有海量游币赠送哦！</p>',
                '</div>',
                '<div class="actions">',
                	'<a class="btn-s4" href="{.inviteSrc}"><span>查看活动详细</span></a>',
                '</div>',
            '</div>'].join(''),
        
        //画报型游记内容发表、编辑
        youjiPhotoItem : [
            '<li class="fin" rel="item:{.item_id}" id="item_{.item_id}">',
            '<div class="pic"><img height="{.height}" width="{.width}" src="{.pic_url}" alt="" title="" /></div>',
            '<div class="box"><textarea class="upload-txa" >{.text}</textarea></div>',
            '<span class="move ico-move"></span><span rel="e:del1" class="close ico-close-btn"></span>',
            '</li>'
        ].join(''),
        
        //等待上传的图片
        youjiPhotoUploading : [
            '<li rel="pid:{.id}" id="upload_{.id}">',
            '<div class="inner">{.name}<span class="tips">等待上传</span></div><div class="process"></div>',
            '<span href="#" rel="e:del2" class="close ico-close-btn"></span>',
            '</li>'
        ].join(''),
        
        //游记分享
        /*
        youjiShare : [
            '<div class="travel-page tour-success">',
            '<div class="travel-wrap">',
                '<div class="tour-rec-side">',
                    '<div class="pic"><div id="youji_share_flash"></div></div>',
                    '<p><a href="#" rel="e:chg" class="btn-change">换一换</a></p>',
                    '<i class="arrow"></i>',
                '</div>',
                '<div class="tour-rec-main">',
                    '<div class="tit">发布成功！<p>立即邀请好友欣赏你的游记吧</p>',
                '</div>',
                '<div><textarea class="txa">我刚在游记中发布了《京郊响水湖》，记录了我在“响水湖”的旅游风光，亲们求围观，求赞美！</textarea></div>',
                '<div class="txt-area" id="friend_search">{Loading}</div>',
                '<div class="btn-area">',
                    '<a href="#" class="btn-rec">分享到微博</a>',
                    '<a href="#" class="skip">跳过&gt;&gt;</a>',
                '</div>',
                '</div>',
            '</div>',
            '</div>'
        ].join(''),
        */
        
        //游记分享中，好友搜索输入框
        youjiShareInput : [
            '<a href="#" class="source"><i class="ico-{.icon}-s1"></i><i class="arrow-down"></i></a><input class="txt" type="text">',
            '[?.droplist?<div class="drop-rec drop-rec-s1">{.droplist}</div>?]'
        ].join(''),
        
        autoComplete : '<div class="drop-rec" id="droplist"></div>',
		
		trends : ['<div class="title">关注更多旅游达人，随时查看他们最新的旅途动态</div>',
					'<div class="recommend-user"><ul></ul></div><div class="action">',
                    '<a href="#" class="btn-follow-all" rel="e:ac">一键关注</a></div>'].join(''),
		
		//酷炫风格提示
		picStyleTip: ['<div class="win-box">',
						'<div class="tit">酷炫画报型</div>',
						'<p class="desc">新颖简单的编辑模式，自动生成精美画报显示<br>适用于爱贴图，文字较少的鱼儿们发游记</p>',
						'<div class="pic"><img src="../../../img/tour_pic.jpg"></div>',
						'<i class="ico-arrow-s6"></i>',
					  '</div>'].join(''),
					  
		PointComment : ['<div class="form-comment">',
                    '<p class="desc">我要分享旅行经验：</p>',
                    '<textarea class="style-normal" id="con"></textarea>',
                    '<div class="action">',
						'<span class="tips-err hidden" id="error">已超出字数限制</span>',
                        '<a href="#" class="btn-s1" rel="e:s"><span>确定</span></a>',
                    '</div>',
                '</div>'].join(''),

		yuyuShow2 : [
			'<a href="{.yuyuLink}" class="ago">',
				'<img  src="{.imgSrc}" alt="" />',
				'<span class="s-hover"><em>{.show_date}</em><i></i></span>',
			'</a>',
			'<div id="contt" class="contt">',
				'<p class="name"><a href="{.yuyuLink}">{.nickname}</a></p>',
				'<p class="occupation">职位：{.profession}</p>',
				'<p class="constellation">星座：{.astro}</p>',
				'<p class="other">{.summary}</p>',
			'</div>'].join(''),
			
		SpotsPic : ['<li rel="e:imgcm,t:,photo_id:{.pid}"><a href="#" class="pic"><img src="../../img_demo/120_pic.jpg"></a>',
						'<p class="addr"><a href="place_single.html">白云山</a></p>',
						'<p class="author">由 <a href="ta_profile.html">是事可可</a> 上传</p>',
					'</li>'].join(''),
					
		//<!--添加照片错误原因提示-->
		
		//经验分享-足迹为空
		expFootmark : ['<div class="exp-info">',
						'<h3 class="txt-hl">分享你的旅行经验，将有120万人能从中获得帮助哦！</h3>',
						'<p>请先填写一下你去过的地方：</p>',
					'</div>',
					'<div class="form form-add-fp">',
						'{.row}',
						'<div class="actions">',
							'<p><a href="#" rel="e:a">+添加</a></p>',
							'<a class="btn-s4" href="#" rel="e:s"><span>提交</span></a>',
						'</div>',
					'</div>'].join(''),
					
		//经验分享-足迹为空添加行
		expFootmarkRow : ['<div class="row">',
							'<label>去过：</label>',
							'<div class="el clear">',
								'<input type="text" class="i1 style-normal style-focus">',
							'</div>',
							'<a class="ico-close-btn hidden" href="#" rel="e:d">删除</a>',
						'</div>'].join(''),
												
		//经验分享
		askStep1 : ['<div class="row" rel="id:{.id}">',
					'<label>问题{.count}：</label>',
					'<div class="el clear">',
						'<input type="text" class="i2 style-normal style-focus" value="{.text}" />',
					'</div><a class="ico-close-btn hidden" href="#" rel="e:d">删除</a>',
				'</div>'].join(''),
				
		//经验分享-我的经验	
		myExp : ['<div class="item">',
					'<div class="pic">',
						'<a href="/spots.detail/id-{.id}" class="img"><img src="{.cover_thumb}"></a>',
						'<a href="/spots.detail/id-{.id}">{.name}</a>',
					'</div>',
					'<div class="info">',
						'<dl class="quest-list">',
						'</dl>',
					'</div>',
				'</div>'].join(''),	
				
		//经验分享-我的经验	
		myExpIn : ['<dt>{.title}</dt>',
					'<dd rel="id:{.id},t:{.time}">',
						'<div class="msg-box clear">',
							'<span class="arrow"><span class="arrow-in">◆</span>◆</span>',
							'<div class="msg-cont clear">',
								'<div class="answer">',
									'<p><span></span></p>',
									'<span class="time">{.time}</span>',
									'<span class="operate" rel="e:expe"><a href="#">编辑</a></span>',
								'</div>',
							'</div>',
						'</div>',
					'</dd>'].join(''),

		//经验分享-我的问题1
		myQuestion1 : ['<div class="item" rel="sid:{.id}">',
						'<div class="pic">',
							'<a href="/spots.detail/id-{.id}" class="img"><img src="{.cover_thumb}"></a>',
							'<a href="/spots.detail/id-{.id}">{.name}</a>',
						'</div>',
						'<div class="info">',
							'<div class="avatars">',
								'<div>',
								'</div>',
							'</div>',
							'<dl class="quest-list">',					
							'</dl>',
						'</div>',
					'</div>'].join(''),	

		//经验分享-我的问题2
		myQuestion2 : ['<dt>{.title}</dt> ',
							'<dd rel="qid:{.qid}">',
								'<div class="msg-box clear">',
									'<span class="arrow"><span class="arrow-in">◆</span>◆</span>',
									'<div class="msg-cont clear">',
										'<ul class="answer-list">',
											
										'</ul>',
									'</div>',
								'</div>',
							'</dd>'].join(''),
		
		//经验分享-我的问题3
		myQuestion3 : ['<li rel="aid:{.id}">',
							'<div class="user-pic">',
								'<a href="#" class="report hidden" rel="e:xrep,t:a">举报</a>',
								'<a href="/space.ta/id-{.tid}"><img width="20" height="20" src="{.face}">{.nickname}</a>',
							'</div>',
							'<p></p>',
							'<span class="time">{.time}</span>',
							'<span class="operate"><a href="#" rel="e:thx">感谢Ta</a></span>',
						'</li>'].join(''),	
		
				
        youjiTip : ['<div class="desc">',
					'<p>错误原因：</p>',
					'<ul>',
						'<li>有部分图片大小超过限制，请修改后再上传！</li>',
						'<li>一次上传的图片总数不能超过40张</li>',
						'<li>图片重复已过滤</li>',
						'<li>图片尺寸小于50X50</li>',
						'<li>你所选择的文件中有部分数据已损坏！</li>',
					'</ul>',
                '</div>'].join(''),
		//推荐配图
		selectPics : ['<ul id="lists"></ul>',
					'<div class="btn-area">',
						'<a class="btn-s1 btn-s1-light" href="#" rel="e:s,na:1"><span>确定</span></a>',
						'<a class="btn-s1 btn-s1-gray" href="#" rel="e:ca,na:1"><span>取消</span></a>',					
				'</div>'].join(''),

		//开通码头, 添加景点 
		spotsItem: '<li id="li_{.id}" ><a href="#" rel="e:delSpot,id:{.id}"  class="ico-del"></a><div class="box">{.name}</div></li>',
		
		spotsItem2: '<li><label for="t{.id}"><input type="checkbox" id="t{.id}">{.name}</label></li>',
		spotsItem2Last: '<li class="last"><label for="inp_search">其他</label><input id="inp_search" type="text"></li>',
		
		groupItem: ['<li rel="id:{.id}">',
						'<div class="pic"><img width="80" height="80" alt="alt" src="{.pic_logo}"></div>',
						'<div class="cont">',
							'<h4>{.name}</h4>',
							'<p>{.description}</p>',
							'[?._join?<a class="btn-join" rel="e:joinGroup,t:{.type},id:{.id}" href="#">加入小组</a>?]',
							'[?._joined?<span class="btn-s7 btn-s7-disabled"><span>已加入</span></span>?]',
							'',
						'</div>',
					'</li>'].join(''),
		//右边栏,小组的item
		groupItem2: [
					'<li>',
						'<img width="20" height="20" alt="" src="{.imgSrc}">',
						'<a href="{.groupUrl}">{.name}</a>',
						'<span class="arrow"></span>',
					'</li>'].join(''),
	
		//添加小组浮层 win-add-group win-fixed ,title:添加小组
		groupLayer: [
				'<div id="nullTip" class="tips-null-s2 hidden"><span class="ico-alert"></span><p>请至少加入一个小组，才能发帖哦！</p></div>',
                '<ul id="list_s1" class="list-s1"><div class="loading"></div></ul>',
                '<div class="action"><a href="#" id="btn_close" class="btn-s4"><span>完成</span></a></div>'].join(''),
		groupLayerItem: [
				'<li>',
					'<div class="pic">',
						'<img alt="" src="{.pic_logo}">',
						'<p class="name"><span title="{.name}">{.name}</span><i></i></p>',
					'</div>',
					'<div class="btn">',
						'[?._join?<a rel="e:joinGroup,t:{.type},id:{.id},n:{.name}" href="#" class="btn-s7"><span>加入小组</span></a>?]',
						'[?._joined?<span rel="e:exitGroup,t:2,id:{.id},n:{.name}" class="btn-s7 btn-s7-disabled"><span>已加入</span></span>?]',
				'</li>'].join(''),
				
		//难忘旅途
		tripManage: [
				'<div class="tab-s7">',
					'<div id="btn_change" class="right-info hidden"><a href="#" rel="e:cc">换一批</a></div>',
					'<ul>',
						'<li class="cur"><a href="#">热门</a></li>',
					'</ul>',
				'</div>',
				'<div id="tripBox" class="trip-bd">',
					   '<ul class="triplist"><div class="loading"></div></ul> ',
					   '<ul class="selected-list"></ul>',
				'</div>',
				'<div class="action">',
					'<a href="#" class="btn-s1" id="btn_ok"><span>确定</span></a>',
					'&nbsp;<a href="#" class="btn-s1 btn-s1-gray" id="btn_cancel"><span>取消</span></a>',
				'</div>'].join(''),
				
		//旅途信息				
		JourneyInfo : ['<h4 class="title">{._title}</h4>',
                '<div class="form-area"  id="journeyInfo">',
                	'<div class="row">',
                        '<label class="label">旅行地点：</label>',
                        '[?.hasArea?<span class="text">{.area}</span>?]',
						'[?!.hasArea?<input type="text" class="input-txt" id="areaInpt" value="{.nameTips}"/>?]',
                    '</div>',
                    '<div class="row"  id="jTime">',
                        '<label class="label">旅行时间：</label>',
                        '<select></select><select></select>',
                    '</div>',
                    '<div class="row last-row">',
                        '<label for="story" class="label">旅行故事：</label>',
                        '<textarea id="story" cols="20" rows="10">{.storyTips}</textarea>',
                    '</div>',
                '</div>',
                '[?!.child?<div class="btn-area">',
					'<p class="tips hidden" id="tips">错误提示</p>',
                    '<a class="btn-s4" href="#" id="save"><span>添加</span></a>',
                    '<a class="btn-s5" href="#" id="cancel"><span>取消</span></a>',
                '</div>?]'].join(''),
				
		JourneyImage : ['<div>',
							'<div class="tab-s10" id="tab">',
								'<a href="javascript:;" class="cur" rel="1"><span>选择图片</span></a><a href="javascript:;" class="" rel="2">',
								'<span>上传图片</span></a>[?.sinaAlbum?<a  rel="3" href="javascript:;" class="hidden"><span>新浪微博相册</span></a>?]',
							'</div>',
							'{JourneySelectPic}',
							'<div id="flashBox" class="pic-cont upload-pic hidden"></div>',
							'{JourneySinaImage}',
						'</div>'].join(''),
				
		JourneySinaImage : ['<div id="journeySinaImage" class="hidden">',
							    '<div class="pic-cont sina-pic ">',
									'<div class="insert-album">',
										'<div class="hd">',
											'<select></select>',
										 '</div>',
										'<div class="list"><ul id="imgList"></ul></div>',
										'<div class="no-data hidden">',
												'<span class="icon-tips"></span>',
												'<div class="desc">',
													'<p>呃，该相册还没有照片哦</p>',
												'</div>',	
										'</div>',
									'</div>',
								'</div>',
								'<div class="page hidden">分页:<span id="pageArea"></span></div>',
								'<div class="btn-area">',
									'<span class="num">(已选择<em id="selectCount">{.num}</em>张照片)</span><a class="btn-s4" href="#" rel="e:save"><span>添加</span></a><a class="btn-s5" href="#" rel="e:cancel"><span>取消</span></a>',
								'</div>',
							'</div>'].join(''),
				
		//旅途选择添加图片
		JourneySelectPic : ['<div id="journeySelectPic" class="hidden">',
								'<div class="pic-cont select-pic">',
									'<div class="tab-s7"><ul id="labelPart">',
										'[?.areaName?<li class="cur"><span rel="e:sc,i:1">{.areaName}</span></li>?]<li class="[?!.areaName?cur?]"><a href="#" rel="e:sc,i:0">全部照片</a></li></ul><a class="btn-s7" href="#"><span id="uploadImg"><i>+</i> 上传新照片</span></a>',
									'</div>',
									'<div class="cont"><div class="list"><ul id="imgList"></ul></div>',
										'<div class="no-data hidden" id="spotsNoImg">',
											'<span class="icon-tips"></span>',
											'<div class="desc">',
												'<p>呃，貌似您没发表过和<span class="name">{.areaName}</span>相关的照片哦</p>',
												'<p><a href="#" rel="e:sc,i:0">查看全部照片</a><br><a href="#" id="uploadImg2">上传新照片</a></p>',
											'</div>',
										'</div>',
										'<div class="no-data hidden" id="allNoImg">',
											'<span class="icon-tips"></span>',
											'<div class="desc">',
												'<p>呃，貌似你还没有照片哦，请上传照片</p><p><a href="#" id="uploadImg3">上传照片</a></p>',
											'</div>',
										'</div>',
									'</div>',
								'</div>',
								'<div class="page hidden">分页:<span id="pageArea"></span></div>',
								'<div class="travels-desc hidden">游记中的照片将在这里显示，<a id="createYouji" href="{.youjiSpotUrl}" target="_blank">立即发表游记</a></div>',
								'<div class="btn-area">',
									'<span class="num">(已选择<em id="selectCount">{.num}</em>张照片)</span><a class="btn-s4" href="#" rel="e:save"><span>添加</span></a><a class="btn-s5" href="#" rel="e:cancel"><span>取消</span></a>',
								'</div>',
							'</div>'].join(''),
			
				
		journeyItem : ['<div class="item" rel="id:{.id}"><div class="cont">{.content}',
                        	'<div class="btn-action hidden">',
                            	'<a href="#"  rel="e:ej"><span>编辑</span><i></i></a><a href="#" rel="e:hid"><span>隐藏</span><i></i></a>',
                            '</div>',
                        	'<i class="arrow" rel="{.newTime}"></i>',
                        '</div>',
                    	'<span class="item-desc [?.hide?hidden?]">{.time}</span>',					
                    	'<i class="point"></i>',
                    '</div>'].join(''),
		
		//我的印象
		impressEdit : ['<form class="clear">',
							'<input type="text" class="input" value="{.editedText}" />',
							'<div class="action">',
								'<a href="#" class="btn-s7" rel="e:edit,type:{.type}"><span>确定</span></a> ',
								'<a href="#" class="btn-s1 btn-s1-gray" rel="e:cancel,type:{.type}"><span>取消</span></a> ',
							'</div>',
						'</form>'].join(''),
		
		impressEditArea: [
				'<div class="form-correct form-msg">',
                    '<div class="row clear">',
                        '<label class="lbl">添加标签：</label><input id="inp_tag" type="text" class="txt"><span id="tagWarn" class="tips tips-on hidden">字数超出限制</span>',
						'<div id="taglist" class="tags-cloud hidden"></div>',
                    '</div>',
                    '<div class="row clear">',
                        '<label class="lbl">说说感受：</label><textarea id="ta_exp" class="txa"></textarea>',
                        '<p id="lessWord" class="tips tips-s1">140</p>',
                    '</div><input type="hidden" value="" id="uid">',
                    '<div class="row actions">',
                        '<a href="#" id="confirm" class="btn-s1"><span>确定</span></a><a href="#" id="cancel" class="btn-s1 btn-s1-gray"><span>取消</span></a>',
                    '</div>',
                '</div>'].join(''),
		impressUserPic: [
							'<div class="user-pic"><img alt="" src="{.src}"></div>',     
							'<div class="desc">',
								'<p>{.exp}<span class="time">  今天{.time}</span></p>',
							'</div>'
						].join(''),
		impressNullTip : '<div class="tips-null-s2"><span class="ico-alert"></span><p>你还没有添加过印象哦，马上<a href="/center.impress">添加</a>吧！</p></div>',

                        
        //搜索栏的模板
        search_spots : [
            '<dd rel="{.url}" >',
                '<a href="{.url}" class="pic"><img width="40" height="30" src="{.cover}" alt="" /></a>',
                '<div class="info">',
                    '<p class="name"><a href="{.url}">{.name}</a></p>',
                    '<p>{.province} {.cityname}</p>',
                '</div>',
            '</dd>'
        ].join(''),
        
        search_dd : '<dd rel="{.url}"><p class="title"><a href="{.url}">《{.title|escape}》</a></p></dd>',
        
        search_users : [
            '<dd rel="{.url}" ><a href="{.url}" class="pic"><img width="30" height="30" src="{.face}" alt="" /></a>',
            '<div class="info">',
                '<p class="name"><a href="{.url}">{.nickname|escape}</a></p>',
                '<p>{.location}</p>',
            '</div></dd>'
        ].join(''),
		
		//全站分享铵钮. 浮层完整的HTML,just append to body
		shareBtns : [
			'<div class="win-pop win-fixed share-all">',
				'<p>分享到：</p>',
				'<a target="_blank" rel="e:share,t:1,na:1" href="#" class="ico-sina-s4">新浪微博</a>',
				'<a target="_blank" rel="e:share,t:2,na:1" href="#" class="ico-qq-s4">腾讯微博</a>',
				'<a target="_blank" rel="e:share,t:3,na:1" href="#" class="ico-rr-s4">人人网</a>',
			'</div>'
		].join(''),
		
		
		//全站分享弹出层
		shareBox : [
            	'<p class="chenk-nun">140</p>',
                '<textarea rows="" cols="" name=""></textarea>',
				'<div id="loading" class="loading" sytle="margin:0 auto"></div>',
				'<div id="picArea" class="hidden">',
					'<p class="title">分享图片：</p>',
					'<ul class="share-img clear"></ul>',
					'<div class="pagination" id="pageBar">',
						'<span class="tips">最多选取5张</span>',
						'<span id="prev" class="prev prev-disable">上一页</span>',
						'<span id="next" class="next"><a href="#">下一页</a></span>',
					'</div>',
				'</div>',
				'<div class="actions"><a id="btn_ok" href="#" class="btn-s1"><span>确定</span></a><a id="btn_cancel" href="#" class="btn-s1 btn-s1-gray"><span>取消</span></a></div>'
		].join('')
        
	});
